{if $menus}
	{foreach from=$menus item=menu key=cid}
		
		<strong style='font-size:14px'>{$cid+1}. {$menu.menu_system_name}</strong>		
		
		{if $menu.pages.0}
		<table id="menu_tbl_{$cid}" class="contentTable" style="width:600px">
			<tr class="table_head">
				<td>Menu Item</td>
				<td width='100'>Sort Order</td>
				<td colspan="2">&nbsp;</td>
			</tr>
	
			
			{foreach from=$menu.pages item=page}
				<tr onmouseover="this.style.backgroundColor='#eee'" onmouseout="this.style.backgroundColor='white'">
					<td>{$page.page_title}</td>
					<td width="30">{$page.menu_order}</td>
					<td width="30"><a href='/{$module}/buildmenu/delete/entry_id/{$page.entry_id}' onclick="if(!confirm('Are you sure?'))return false;"><img src='{$theme}images/icons/remove.png' border="0"/></a></td>
					<td width="30"><a href='/{$module}/buildmenu/form/entry_id/{$page.entry_id}'><img src='{$theme}images/icons/next.png' border="0"/></a></td>
				</tr>
			{/foreach}
		</table>
		{else}
			
		{/if}
		<br/>
		<a href="/{$module}/{$controller}/form/menu_id/{$menu.menu_id}"><img src='{$theme}images/icons/add.png' border="0"></a><br/><br/>
	{/foreach}
{else}
	Click <a href='/admin/menus' style='font-weight:bold'>here</a> to add menus
{/if}